
import ajax from './index'

// 课程分页列表

export function coursePageList(param) {
  return ajax({
    url: "/backend/course/pageList",
    method: "get",
    params: param
  });
}

// 课程保存

export function courseSave(param) {
  return ajax({
    url: "/backend/course/save",
    method: "POST",
    data: param
  });
}
// 课程保存

export function courseDelete(id) {
  return ajax({
    url: `/backend/course/delete/${id}`,
    method: "GET",
    params: { ids: id }
  });
}
// 课程分类

export function courseType() {
  return ajax({
    url: `/backend/courseType/pageList`,
    method: "GET"
  });
}
// 课程分类

export function courseTypeSave(data) {
  return ajax({
    url: `/backend/courseType/save`,
    method: "POST",
    data: data
  });
}
// 课程分类

export function courseTypeDelete(ids) {
  return ajax({
    url: `/backend/courseType/delete/${ids}`,
    method: "POST"
  });
}
